<!--Music:-->
<style type="text/css">

body {
    color:#505050;
    font-family:tahoma;
    font-size:11px;
}

.song-item {
    border-bottom:1px solid #F8F8F8;
    margin:0px 0 3px;
    padding-bottom:3px;
}

img {
    border:0 solid #000000;
}

.song-item .hot-name a {
    -x-system-font:none;
    font-family:tahoma;
    font-size:9pt;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    line-height:normal;
}

.song-item .hot-name .artist a {
    color:#418383;
    font-size:8.5pt;
    line-height:22px;
}


a:link { /*color: #286f99;*/ color:#003399; text-decoration:none}
a:visited { color: #003399; text-decoration:none}
a:hover { color: #003399; text-decoration:underline}
a:active { color: #003399; text-decoration:none}

.song-item .hot-name {
    float:left;
    width:190px;
    padding-right:5px;
    text-align:left;
}

.song-item .hot-time {
    float:left;
    text-align:left;
    width:85px;
}

.song-item .hot-star {
    float:left;
    text-align:center;
    width:85px;
}
<?php

function sec_to_hms($time_in_sec){
  if(strpos( $time_in_sec, ':' ) === false)
  {
  $sec = $time_in_sec%60;
  return sprintf("%02d:%02d",($time_in_sec-$sec)/60, $sec);
  }
  return $time_in_sec;
}

$event = $this->event;
foreach($this->vote_info as $thread_id=>$thread){
    if(count($thread) >= 1){
        foreach($thread as $phase_id=>$phase){         
            $voteImgArr = array();
            if($phase->view_enable ==1 && isset($this->musicList[$phase->thid][$phase->pid])
            && is_array($this->musicList[$phase->thid][$phase->pid]) 
            && count($this->musicList[$phase->thid][$phase->pid])>0
            && $phase->vote_type == EVENT_MUSIC_VOTE){
                $voteMusicArr = $this->musicList[$phase->thid][$phase->pid];
                $music_block_id = $thread_id."_".$phase_id;
                $music_block_title = $phase->thread_name.($phase->phase_name != ""?" - ".$phase->phase_name:"");
                $bgImg = "header-small-".$thread_id.'-'.$phase_id.".png";
?>
			

</style>
                <a name="mark_music_<?=$music_block_id?>"></a>
                <div id="music" class="event-area">
    			
                    <div class="event-header-long">
                        <span class="value"><a href="<?php echo "http://www.tamtay.vn/event/".$event->short_cut."/votedlist/".$thread_id."/".$phase_id;?>" title="<?=$music_block_title?>"><?=$music_block_title?></a></span></span>
                    </div>
                    <div class="event-content-long">                    	
                        
                        <div class="music-list">
                        	
                        	<ul>
							<?php 
							for($i=0; $i<count($voteMusicArr); $i++){
								$music = $voteMusicArr[$i];
							?>
                            	<li>
                            		<div class="song-item">
										<div class="hot-name"><span><a href="http://music2.tamtay.vn/play/<?=$music->sid;?>" target="_blank"><?=$music->title?></a></span><br/>
											<span class="artist"><?php echo $music->singer_name?></span>
										</div>
										<div>
											<div class="hot-time">Độ dài: <?=sec_to_hms($music->playtime_seconds);?>
												<div style="height:2px;"><hr /></div>
													Nghe: <?php echo $music->play_count?> lượt
											</div>
										</div>
										<!--
										<div class="hot-star"><img alt="Mp3_icon" src="/images/mp3_icon.png"/><br/>
											<strong>128 Kbps</strong><br/>
										</div>
										-->
										<div class="clear"/>
									</div>
                            	</li>
							<?php } // End of for loop?>
                            </ul>
							<div class="clear"></div> 
                        </div>                 
                      	<div class="text-right viewmore"><a href="<?php 
							echo "http://www.tamtay.vn/event/".$event->short_cut."/votedlist/".$thread_id."/".$phase_id;?>">Xem tiếp &raquo;</a></div>
                    </div>
                </div>
                <!--End news-->
<?php 
            }
        }
    }
    
} 
?>